//1、医院分页请求的类型，参数类型定义,并暴露出去
//可选值的类型，需要加可选
export interface getHospitalListParamsType {
    page: number,
    limit: number,
    hosname?: string,
    hoscode?: string
}


//定义返回值中每一项的类型
export interface getHosListItemType {
    id: number,
    createTime: string,
    updateTime: string,
    isDeleted: number,
    param: Object,
    hosname: string,
    hoscode: string,
    apiUrl: string,
    signKey: string,
    contactsName: string,
    contactsPhone: string,
    status: 0 | 1
}

//因为返回值是一个数组，上面是每一项数据类型
//所以定义返回值类型
export type getHosListRecordsType = getHosListItemType[]


//定义整个返回值类型
export interface getHosListReturnType {
    records:getHosListRecordsType,
    total: number,
    size: number,
    current: number,
    orders: any[],
    hitCount: boolean,
    searchCount: boolean,
    pages: number
}

// 2、添加医院数据的类型定义
export interface addHospitalParamType {
    apiUrl: string,
    contactsName: string,
    contactsPhone: string,
    hoscode: string,
    hosname: string
}

//3、添加医院修改的类型定义 因为之前定义过添加医院数据的类型，而这里只是多个id，所以去继承类型
export interface upHosSetType extends addHospitalParamType{
    id:string
}

